#include <deque>
#include <string>
#include <iostream>
using namespace std;

void test(){
    string str;
    cin >> str;
    //cout << str.size() << endl;
    deque<char> dq;
    for(int i = 0 ; i < str.size(); i++){
        dq.push_back(str[i]);
    }
    
    deque<char>:: iterator it = dq.begin();
    for(it; it != dq.end(); ++it){
        cout << *it << " ";
    }
    cout << endl;
}

int main(int atgc, char * argv[])
{
    test();
    return 0;
}

